﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sample
{
    public class Class1
    {
        public int mid(int x, int y, int z)
        {
            int mid = 0;
            mid = z;
            if (y < z)
            {
                if (x < y)
                    mid = y;
                else if (x < z)
                    mid = x;
            }
            else
            {
                if (x > y)
                    mid = y;
                else
                    if (x > z)
                        mid = x;
            }
            return mid;
        }

        /*public void CoverMe(int[] a)
        {
            if (a == null) return;
            if (a.Length > 0)
                if (a[0] == 1234567890)
                    throw new Exception("bug");
        }*/

    }
}
